/*************************************************************************
  > File Name: VectorPre.cpp
  > Author: 16hxliang3
  > Mail: 16hxliang3@stu.edu.cn
  > Created Time: Sat 23 Jul 2022 08:54:11 AM CST
 ************************************************************************/

#include <cstdint>
#include <iostream>
#include <vector>
int main()
{
  std::vector<std::string> a, b;
  uint_fast32_t limit = 300000;
  auto start = clock();
  a.resize(limit);
  for(uint_fast32_t i = 0; i < limit; i++)
    if(i > 299000)
      a[i] = "lloheljl";
    else
      a[i] = "hello";
  auto finish = clock();
  std::cout << finish - start << std::endl;
  start = clock();
  for(uint_fast32_t i = 0; i < limit; i++)
    b.push_back("hello");
  finish = clock();
  std::cout << finish - start << std::endl;
  return 0;
}
